package com.ruoyi.grape.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 tb_grape_tech
 * 
 * @author ld
 * @date 2023-11-18
 */
public class GrapeTech extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long techId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String textTitle;

    /** 文章来源 */
    @Excel(name = "文章来源")
    private String textSource;

    /** 文章类别 */
    @Excel(name = "文章类别")
    private Long categoryId;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 内容详情 */
    @Excel(name = "内容详情")
    private String textContent;

    /** 备注 */
    @Excel(name = "备注")
    private String techNote;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String techImage;

    public void setTechId(Long techId) 
    {
        this.techId = techId;
    }

    public Long getTechId() 
    {
        return techId;
    }
    public void setTextTitle(String textTitle) 
    {
        this.textTitle = textTitle;
    }

    public String getTextTitle() 
    {
        return textTitle;
    }
    public void setTextSource(String textSource) 
    {
        this.textSource = textSource;
    }

    public String getTextSource() 
    {
        return textSource;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setTextContent(String textContent) 
    {
        this.textContent = textContent;
    }

    public String getTextContent() 
    {
        return textContent;
    }
    public void setTechNote(String techNote) 
    {
        this.techNote = techNote;
    }

    public String getTechNote() 
    {
        return techNote;
    }
    public void setTechImage(String techImage) 
    {
        this.techImage = techImage;
    }

    public String getTechImage() 
    {
        return techImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("techId", getTechId())
            .append("textTitle", getTextTitle())
            .append("textSource", getTextSource())
            .append("categoryId", getCategoryId())
            .append("publishTime", getPublishTime())
            .append("textContent", getTextContent())
            .append("techNote", getTechNote())
            .append("techImage", getTechImage())
            .toString();
    }
}
